package cn.com.miao.lynx.common.data.core;

import org.jetbrains.annotations.NotNull;
import org.springframework.data.domain.AuditorAware;

import java.util.Optional;

/**
 * CustomAuditorAware
 *
 * @title: CustomAuditorAware
 * @description:
 * @author: dengmiao
 * @create: 2019-12-26 16:23
 **/
public class CustomAuditorAware implements AuditorAware<String> {

    @NotNull
    @Override
    public Optional<String> getCurrentAuditor() {
        // 从security中获取userId
        return Optional.empty();
    }
}
